package org.jeecg.modules.paycenter.channel.zxbank.service;

import org.jeecg.modules.paycenter.enums.PayChannelEnum;
import org.jeecg.modules.paycenter.service.BasePayChannelService;
import org.jeecg.modules.paycenter.service.IPayChannelService;
import org.jeecg.modules.wlhy.hyconfig.entity.HyConfig;
import org.jeecg.modules.wlhy.utils.HyConfigUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ZXPayPayChannelService extends BasePayChannelService implements IPayChannelService {
    @Autowired
    private ZXBankService zxBankService;

    //region base
    @Override
    public PayChannelEnum getChannelEnum() {
        return PayChannelEnum.ZX;
    }

    @Override
    public String getChannel() {
        return PayChannelEnum.ZX.channelType;
    }

    @Override
    public boolean checkChannel() {
        HyConfig config = HyConfigUtils.getConfig();
        return config.getZxIzUse();
    }
    //endregion

}
